                <?php
                    //TODO: Place this pice of code into components file
                    $elements = array(
                        'active' => array(  // Used by default
                            'link' => '/',
                            'name' => 'Attitude'
                        )
                    );

                    foreach($menu->getElements() as $element) {
                        if($element->getParameter() != 'index') {
                            if(!$element->isActive()) {
                                $elements['items'][] = array(
                                    'link' => $element->getLink(),
                                    'name' => $element->getName()
                                );
                            } else {
                                $elements['active'] = array(
                                    'link' => $element->getLink(),
                                    'name' => $element->getName()
                                );
                            }
                        }
                    }
                ?>
            <?php if($elements): ?>
                <!-- Dropdown navigatsioon -->
                <?php slot('header_menu') ?>
				<div class="nav nav01">
					<div class="dropper">
						<p class="trigger"><a href="<?php echo $elements['active']['link'] ?>"><span><?php echo $elements['active']['name'] ?></span></a></p>
						<div class="dropdown01">
							<div class="a clear">
                                <ul>
                                <?php foreach($elements['items'] as $element): ?>
									<li><a href="<?php echo $element['link'] ?>"><?php echo $element['name'] ?></a></li>
								<?php endforeach; ?>
                                </ul>
							</div>
							<div class="b"></div>
						</div>
					</div>
				</div>
                <?php end_slot() ?>
            <?php endif; ?>